﻿<div id="ajaxExamples-page" class="static-content">

    <h3>Ajax Examples with ServiceStack</h3>
    
    <p>
        Like many good websites, things only get fun once you are able to talk with 
        back end web services.
    </p>
    
    <p>
        Using the 
        <a href="http://www.servicestack.net/ServiceStack.Examples.Clients/Default.htm">ServiceStack Examples</a> 
        project as a starting point, lets get started.               
    </p>
    
    <div class="input">
        <h4>Get Factorial Service</h4>
        <label>For Number:</label>
        <input class="int" type="text" id="txtGetFactorial" value="3" />
        <button id="btnGetFactorial">Go</button>
    </div>

    <h4>Result</h4>
    
    <div id="factorial-result" class="result"></div>

    <div class="input">
        <h4>Get Fibonacci Numbers Service</h4>

        <label>Skip:</label>
        <input class="int" type="text" id="txtGetFibonacciNumbersSkip" value="3" />

        <label>Take:</label>
        <input class="int" type="text" id="txtGetFibonacciNumbersTake" value="10" />

        <button id="btnGetFibonacciNumbers">Go</button>
    </div>

    <h4>Result</h4>
    <div id="fibonacci-result" class="result"></div>

</div>